package cn.configleon.configurer;

/**
 * @author jay
 */
public enum Environment {
//    DEV("DEV"), QA("QA"), DRYRUN("DRYRUN"), PROD("PROD");
    OPEN("open-api");
    private String env;
    
    Environment(String env) {
        this.env = env;
    }
    
    public static boolean validate(String env) {
        for (Environment environment : Environment.values()) {
            if (env.equalsIgnoreCase(environment.getEnv())) {
                return true;
            }
        }
        return false;
    }
    
    public String getEnv() {
        return env;
    }
    
    @Override
    public String toString() {
        return env;
    }
    
}
